package com.wu.shiro.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author wuyanshen
 * @date 2019-01-14 9:49 PM
 * @discription JWTToken就是Shiro用户名密码的载体
 */
public class JwtToken implements AuthenticationToken {

    /**
     * 密钥
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
